public class Main {
    public static void main1(String[] args) {
        Dog dog1 = new Dog();
        dog1.name = "FF";
        dog1.color = "black";
        dog1.bark();
        dog1.wag();

        Dog dog2 = new Dog();
        dog2.name = "bb";
        dog2.color = "white";
        dog2.bark();
        dog2.wag();
    }

    //类的实例化就是 new 类名（）
    public static void main2(String[] args) {
        Stud stud = new Stud(); //类的实例化
        stud.name = "guzhicheng";
        stud.gender = "boy";
        stud.age = 20;
        stud.score = 100;
        stud.online();
        stud.dohomework();
        stud.text();
        System.out.println(stud.name);
    }

    //this 的应用
    public static void main(String[] args) {
        Date date = new Date(2025,9,3);
        date.printDay();

        System.out.println("==============");
        Date date1 = new Date();
        date1.printDay();

    }
}